package org.itboys.core.entity.mongo;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：zzq
 * 时间：2018/10/15
 * 描述：地址
 */
@Data
@Entity(value = "SundayAddress", noClassnameStored = true)
public class SundayAddress extends BaseMongoEntity {
    private Long memberId;//收货人id
    private String  receiveName;//收货人
    private String receiveMobile;//收货电话
    private Long provinceId;//省id
    private String provinceName;//省名称
    private Long cityId;//市id
    private String cityName;//市名称
    private Long districtId;//区id
    private String districtName;//区名称
    private String receiveAddress;//收货地址
    private Integer isDefault;//是否默认.0是，1否。默认地址不能删除


    public SundayAddress() {
    }
    public SundayAddress(Long id, Long memberId, String receiveName, String receiveMobile,
                         Long provinceId,String provinceName, Long cityId, String cityName,  Long districtId, String districtName,
                         String receiveAddress, Integer isDefault) {
        super.setId(id);
        this.memberId = memberId;
        this.receiveName = receiveName;
        this.receiveMobile = receiveMobile;
        this.provinceId=provinceId;
        this.provinceName = provinceName;
        this.cityId=cityId;
        this.cityName = cityName;
        this.districtId=districtId;
        this.districtName = districtName;
        this.receiveAddress = receiveAddress;

        this.isDefault = isDefault;
    }
}
